<template>
  <div>
    login
    <el-button @click="loginFun">登录</el-button>
    <el-button @click="getValue">获取数据</el-button>
  </div>
</template>
<script setup lang="ts">
import { onBeforeMount, onMounted, reactive, ref } from "vue";
const emits = defineEmits([]);
const props = defineProps({});
const state = reactive({});
onBeforeMount(() => {});
onMounted(() => {});
const loginFun = () => {
  useUserStore().setToken("123");
};
const getValue = () => {
  console.log(useUserStore().getToken());
};
defineExpose({ state });
</script>
<style lang="scss" scoped></style>
